package com.fsy.weibao.workorder.service;

import cc.mrbird.febs.common.domain.QueryRequest;
import cc.mrbird.febs.common.exception.FebsException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fsy.weibao.workorder.domain.ProcessHistory;
import com.fsy.weibao.workorder.domain.WorkOrder;

import java.util.List;

public interface WorkOrderService {

    void add(WorkOrder order) throws Exception;

    void update(WorkOrder order);

    void handle(WorkOrder order) throws Exception;

    WorkOrder getWorkOrderById(int id);

    WorkOrder getWorkOrderByProcess(String processId);

    IPage<WorkOrder> findWorkOrders(WorkOrder order, QueryRequest queryRequest);

    List<ProcessHistory> getProcessHistory(int workOrderId);
}
